package com.panda.qqclient.services;

import java.util.HashMap;

public class ManageClientConnectServerThread {
    private  static HashMap<String,ClientConnectServiceThread> hm=new HashMap<>();

    //将一个线程加入到集合中
    public static void addToMap(String userId,ClientConnectServiceThread clientConnectServiceThread){
        hm.put(userId,clientConnectServiceThread);
    }

    //通过ID可以得到对应的线程
    public static ClientConnectServiceThread getFromMap(String userId)
    {
        return hm.get(userId);
    }

}
